﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AllProfiles.aspx.vb" Inherits="LondonItalianRestaurants.AllProfiles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="Dinerid" 
        DataSourceID="SqlDataSource1" GroupItemCount="3">
        <AlternatingItemTemplate>
            <td id="Td1" runat="server" style="background-color:Olive">
                
                <br />
                <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' /> &nbsp;           
                <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
                <br />Portrait:
                <img src'<%# Eval("Portrait") %>'style="width:100px; height:100px" />
                <br />Born:
                <asp:Label ID="DateOfBirthLabel" runat="server" 
                    Text='<%# Eval("DateOfBirth") %>' />
                <br />column1:
                <asp:Label ID="column1Label" runat="server" Text='<%# Eval("column1") %>' />
                <br />Address:
                <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                <br />Telephone:
                <asp:Label ID="TelephoneLabel" runat="server" Text='<%# Eval("Telephone") %>' />
                <br />User since:
                <asp:Label ID="RegistrationDateLabel" runat="server" 
                    Text='<%# Eval("RegistrationDate") %>' />
                <br />Gender:
                <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
                <br />
            </td>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <td runat="server" style="">
                Dinerid:
                <asp:Label ID="DineridLabel1" runat="server" Text='<%# Eval("Dinerid") %>' />
                <br />FiestName:
                <asp:TextBox ID="FiestNameTextBox" runat="server" 
                    Text='<%# Bind("FiestName") %>' />
                <br />LastName:
                <asp:TextBox ID="LastNameTextBox" runat="server" 
                    Text='<%# Bind("LastName") %>' />
                <br />Portrait:
                <asp:TextBox ID="PortraitTextBox" runat="server" 
                    Text='<%# Bind("Portrait") %>' />
                <br />DateOfBirth:
                <asp:TextBox ID="DateOfBirthTextBox" runat="server" 
                    Text='<%# Bind("DateOfBirth") %>' />
                <br />column1:
                <asp:TextBox ID="column1TextBox" runat="server" Text='<%# Bind("column1") %>' />
                <br />Address:
                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />
                <br />Telephone:
                <asp:TextBox ID="TelephoneTextBox" runat="server" 
                    Text='<%# Bind("Telephone") %>' />
                <br />RegistrationDate:
                <asp:TextBox ID="RegistrationDateTextBox" runat="server" 
                    Text='<%# Bind("RegistrationDate") %>' />
                <br />Gender:
                <asp:TextBox ID="GenderTextBox" runat="server" Text='<%# Bind("Gender") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="Update" />
                <br />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Cancel" />
                <br />
            </td>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" style="">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <EmptyItemTemplate>
<td runat="server" />
        </EmptyItemTemplate>
        <GroupTemplate>
            <tr ID="itemPlaceholderContainer" runat="server">
                <td ID="itemPlaceholder" runat="server">
                </td>
            </tr>
        </GroupTemplate>
        <InsertItemTemplate>
            <td runat="server" style="">
                Dinerid:
                <asp:TextBox ID="DineridTextBox" runat="server" Text='<%# Bind("Dinerid") %>' />
                <br />FiestName:
                <asp:TextBox ID="FiestNameTextBox" runat="server" 
                    Text='<%# Bind("FiestName") %>' />
                <br />LastName:
                <asp:TextBox ID="LastNameTextBox" runat="server" 
                    Text='<%# Bind("LastName") %>' />
                <br />Portrait:
                <asp:TextBox ID="PortraitTextBox" runat="server" 
                    Text='<%# Bind("Portrait") %>' />
                <br />DateOfBirth:
                <asp:TextBox ID="DateOfBirthTextBox" runat="server" 
                    Text='<%# Bind("DateOfBirth") %>' />
                <br />column1:
                <asp:TextBox ID="column1TextBox" runat="server" Text='<%# Bind("column1") %>' />
                <br />Address:
                <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />
                <br />Telephone:
                <asp:TextBox ID="TelephoneTextBox" runat="server" 
                    Text='<%# Bind("Telephone") %>' />
                <br />RegistrationDate:
                <asp:TextBox ID="RegistrationDateTextBox" runat="server" 
                    Text='<%# Bind("RegistrationDate") %>' />
                <br />Gender:
                <asp:TextBox ID="GenderTextBox" runat="server" Text='<%# Bind("Gender") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="Insert" />
                <br />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Clear" />
                <br />
            </td>
        </InsertItemTemplate>
        <ItemTemplate>
            <td runat="server" style="">
                
                <br />
                <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' /> &nbsp;           
                <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
                <br />Portrait:
                <img src'<%# Eval("Portrait") %>'style="width:100px; height:100px" />
                <br />Born:
                <asp:Label ID="DateOfBirthLabel" runat="server" 
                    Text='<%# Eval("DateOfBirth") %>' />
                <br />column1:
                <asp:Label ID="column1Label" runat="server" Text='<%# Eval("column1") %>' />
                <br />Address:
                <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                <br />Telephone:
                <asp:Label ID="TelephoneLabel" runat="server" Text='<%# Eval("Telephone") %>' />
                <br />User since:
                <asp:Label ID="RegistrationDateLabel" runat="server" 
                    Text='<%# Eval("RegistrationDate") %>' />
                <br />Gender:
                <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
                <br />
            </td>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                            <tr ID="groupPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="">
                        <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                    ShowLastPageButton="True" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <td runat="server" style="">
                Dinerid:
                <asp:Label ID="DineridLabel" runat="server" Text='<%# Eval("Dinerid") %>' />
                <br />FiestName:
                <asp:Label ID="FiestNameLabel" runat="server" Text='<%# Eval("FiestName") %>' />
                <br />LastName:
                <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
                <br />Portrait:
                <asp:Label ID="PortraitLabel" runat="server" Text='<%# Eval("Portrait") %>' />
                <br />DateOfBirth:
                <asp:Label ID="DateOfBirthLabel" runat="server" 
                    Text='<%# Eval("DateOfBirth") %>' />
                <br />column1:
                <asp:Label ID="column1Label" runat="server" Text='<%# Eval("column1") %>' />
                <br />Address:
                <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                <br />Telephone:
                <asp:Label ID="TelephoneLabel" runat="server" Text='<%# Eval("Telephone") %>' />
                <br />RegistrationDate:
                <asp:Label ID="RegistrationDateLabel" runat="server" 
                    Text='<%# Eval("RegistrationDate") %>' />
                <br />Gender:
                <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
                <br />
            </td>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Dinerid], [FiestName], [LastName], [Portrait], [DateOfBirth], [E-Mail] AS column1, [Address], [Telephone], [RegistrationDate], [Gender] FROM [UserProfile]">
    </asp:SqlDataSource>
</asp:Content>
